package com.lagou.service;

import com.lagou.entity.User;
import com.lagou.mapper.UserMapper;
import org.springframework.stereotype.Service;

/**
 * @author bwcx_jzy
 * @since 2021/11/24
 */
@Service
public class UserService {

    private final UserMapper userMapper;


    public UserService(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public User login(String name, String password) {
        return userMapper.login(name, password);
    }
}
